import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

/// 天气温度
class RealTimeTempView extends StatefulWidget {
  final String temp;

  RealTimeTempView({Key key, this.temp }) : super(key: key);

  @override
  State<StatefulWidget> createState() {
    return _RealTimeTempViewState();
  }

}


class _RealTimeTempViewState extends State<RealTimeTempView> {

  @override
  Widget build(BuildContext context) {
    var color = Colors.white;
    return GestureDetector(
      child: Container(
        child: Row(
          mainAxisAlignment: MainAxisAlignment.start,
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            SizedBox(
              width: 10,
            ),
            Text(
              "${widget.temp}",
              style: TextStyle(
                  fontSize: 150, fontWeight: FontWeight.w400, color: color),
            ),
            Text(
              "°",
              style: TextStyle(
                  fontSize: 50, fontWeight: FontWeight.w500, color: color),
            ),

          ],
        ),
      ),

    );
  }
}
